package day0220;

import java.util.Scanner;

public class Test3 {
    public static void main(String[] args) {
        Scanner s=new Scanner(System.in);

        String inputStr=s.nextLine();
        char firstLetter=inputStr.charAt(0);
        System.out.println((int)firstLetter);
    }
}
